package com.example.trb.util.result;

import org.springframework.http.HttpStatus;

public enum FileReturnCode implements ReturnCode {
    FILE_PART_UPLOAD(HttpStatus.PARTIAL_CONTENT.value(), "部分文件上传成功"),
    FILE_UPLOAD_FAIL(SysReturnCode.INTERNAL_SERVER_ERROR.code, "上传文件失败");

    final Integer code;
    final String message;

    FileReturnCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
